package com.patternsbox.behavioral.state;

class Context {

	private State state;
	 
	public Context(State state) {
		this.state = state;
	}

	public void request() {
		state.handle(this);
	}

	public void setState(State state) {
		System.out.println("State: " +
        state.getClass().getSimpleName());
		this.state = state;
	}
}
